import requests,json

url = "http://10.10.50.23:8088/cms/file/upload/resource/pre-sign-url"
#url = "https://datafactorytest.data-baker.com/cms/file/upload/resource/pre-sign-url"
headers = {
  "Accept": "*/*"
}

with open("url10","r",encoding="utf-8") as r:
    r =r.readlines()
for row in r:
    body = {
      "originUrl": row.strip()
    }

    r = requests.post(url=url,headers=headers,json=body)
    redict = json.loads(r.text)
    if redict["code"] == 0:
        print(1,row.strip(),redict["data"])
    else:
        print(2,row.strip())
